package com.sunnada.edu.mobile.login.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sunnada.edu.mobile.login.dao.PhoneLoginDao;
@Service
@Transactional
public class PhoneLoginServiceImpl implements PhoneLoginService {
	@Resource
	PhoneLoginDao loginDao;
	public List findModules(HashMap<String, String> params){
		return loginDao.findModules(params);
	}
	public Map getUserByUserId(HashMap<String, String> params) {
		return loginDao.getUserByUserId(params);
	}
	@Override
	public boolean isSmsCodeOk(HashMap<String, String> params) {
		return loginDao.isSmsCodeOk(params);
	}
	@Override
	public int deletSemsCode(HashMap<String, String> params) {
		return  loginDao.deletSemsCode(params);
	}
	@Override
	public int addUserLog(HashMap<String, String> params) {
	   return	loginDao.addUserLog(params);
	}
	@Override
	public boolean selectUserlog(HashMap<String, String> params) {
		return loginDao.selectUserlog(params);
	}
	@Override
	public List getUserMobileMenus(HashMap<String, String> params) {
		return loginDao.getUserMobileMenus(params);
	}
	
	
}
